package service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import dao.LoginDao;
import service.LoginService;
import vo.Person;
@Service("ls")
public class LoginServiceImpl implements LoginService{
	@Autowired(required=true)
	private LoginDao ld;
	@Override
	public Person login(String xh, String psd) {
		
		return ld.find(xh,psd);
	}

	@Override
	@Transactional
	public int regist(Person s) {
		
		
		return ld.add(s);
	} 

}
